package com.league.blog.system.shiro;

import com.league.blog.pojo.User;
import org.apache.shiro.SecurityUtils;

/**
 * @author 黄豪琦
 * 日期:2020-04-17 14:05
 * 说明:
 */
public class ShiroUtils {

    public static User getUser(){
        return (User) SecurityUtils.getSubject().getPrincipal();
    }


}
